<template>
  <div class="item-box-container">
    <div class="title-warp">
      <span>{{ title }}</span>
    </div>
    <div class="item-content">
      <slot name="content"> </slot>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
defineProps({
  title: {
    type: String,
    default: ''
  }
})
</script>

<style lang="scss" scoped>
.item-box-container {
  width: 100%;
  height: 100%;
  background: rgba(27, 49, 66, 0.3);
  // border: 1px solid #e5a935;
  box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.7);
  .title-warp {
    width: calc(100% - 25px - 20px);
    height: 50px;
    background-size: 100% 100%;
    background-position: -4px -2px;
    font-size: 20px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-style: italic;
    color: #333;
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.6);
    line-height: 37px;
    padding-left: 20px;
    letter-spacing: 2px;
  }
  .item-content {
    width: 100%;
    height: calc(100% - 50px);
  }
}
</style>
